package girvate;

import frameWork.util.Vector2D;

import java.awt.*;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.Vector;

public class Grivate {

    public ArrayList<GrivateNode> arr=new ArrayList<>();

    public Grivate(){
        while(arr.size()<500)createNode();
        GrivateNode.arr=arr;
    }


    int h=1920/2,w=1080/2;

    private void createNode(){

        double rad=Math.random()*Math.PI*2;
        double size=Math.random();
        size=Math.sqrt(size);
        double r=300;
        int x=(int)(Math.sin(rad)*r*size+h);
        int y=(int)(Math.cos(rad)*r*size+w);

        Point p=new Point(x,y);
        arr.add(new GrivateNode(p));
    }


}
